Skip to content

fix(check): read root subvol name from fstab instead of hardcoding "root"#18

Merged
rocketman-code merged 1 commit intomainfrom
fix/root-subvol-from-fstab
Apr 7, 2026
Merged

fix(check): read root subvol name from fstab instead of hardcoding "root"#18
rocketman-code merged 1 commit intomainfrom
fix/root-subvol-from-fstab

Conversation

@rocketman-code
Copy link
Copy Markdown
Owner

check_root_mountable hardcoded "root" as the btrfs subvolume the kernel mounts as /. On systems with a non-Fedora layout (openSUSE Timeshift uses @, @home, @var, ...), the baseline gate failed with "Btrfs subvolume 'root' not found" before setup could run.

Replace the hardcoded literal with tools::root_subvol_name, which reads the subvol= mount option from the fstab entry for /. Error messages now report the actual name.

Three regression tests exercising the openSUSE @ layout, the Fedora default, and a missing subvol= option.

Tested on Fedora 43 cloud VM: A/B/A against shipped 0.3.7 on the layout from the issue. 0.3.7 reproduces the failure, this branch passes all five gates, reverting to 0.3.7 reproduces the failure again.

Closes #15

…oot"

check_root_mountable hardcoded "root" as the btrfs subvol name the
kernel mounts as /. On systems with a non-Fedora layout (openSUSE
Timeshift uses @, @home, @var, ...), the gate failed with
"Btrfs subvolume 'root' not found" before setup could run, even
though the layout was otherwise valid.

Replace the hardcoded literal with tools::root_subvol_name, which
reads the subvol= mount option from the fstab entry for /. Error
messages report the actual name rather than always saying 'root'.

Add three regression tests exercising the openSUSE @ layout, the
Fedora default, and a missing subvol= option.
@rocketman-code rocketman-code merged commit 4194088 into main Apr 7, 2026
2 checks passed
@rocketman-code rocketman-code deleted the fix/root-subvol-from-fstab branch April 12, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@ for root issue

1 participant